package com.ophiux.oop;

import lombok.Data;

/**
 * @desc: 交通工具
 * @author: hhl
 * @date：2024/2/19 16:34
 */
@Data
public class Vehicle {

    private String name;

    public Vehicle(String name) {
        this.name = name;
    }

    public void getVehicleName(){
        System.out.println("我是交通工具:"+name);
    }

}
